import http from './http'

// 工艺管理 API
export const processManagementApi = {
  // 分页查询工艺管理信息
  getProcessManagementPage(params) {
    return http.get('/database/processManagement/page', { params })
  },
  
  // 添加工艺管理信息
  addProcessManagement(data) {
    return http.post('/database/processManagement/add', data)
  },
  
  // 更新工艺管理信息
  updateProcessManagement(data) {
    return http.put('/database/processManagement/update', data)
  },
  
  // 根据ID查询工艺管理信息
  getProcessManagementById(id) {
    return http.get(`/database/processManagement/${id}`)
  },
  
  // 删除工艺管理信息
  deleteProcessManagementById(id) {
    return http.delete(`/database/processManagement/delete/${id}`)
  }
} 